﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Sec_scan安全漏洞扫描系统_2._0.HomeForm
{
    public partial class Scan : Form
    {
        public Scan()
        {
            InitializeComponent();
            StartPosition = FormStartPosition.CenterScreen;
        }
        private void button2_Click(object sender, EventArgs e)
        {
            textBox1.Text = "20";
            textBox2.Text = "20";
            textBox3.Text = "20";
            textBox4.Text = "20";
            textBox5.Text = "20";
            textBox6.Text = "20";
            trackBar1.Value = 20;
            trackBar2.Value = 20;
            trackBar3.Value = 20;
            trackBar4.Value = 20;
            trackBar5.Value = 20;
            trackBar6.Value = 20;
        }
        private void trackBar1_ValueChanged(object sender, EventArgs e)
        {
            textBox1.Text = trackBar1.Value.ToString();
        }

        private void trackBar1_Enter(object sender, EventArgs e)
        {
            this.ActiveControl = null;
        }
        private void trackBar2_ValueChanged(object sender, EventArgs e)
        {
            textBox2.Text = trackBar2.Value.ToString();
        }

        private void trackBar3_ValueChanged(object sender, EventArgs e)
        {
            textBox3.Text = trackBar3.Value.ToString();
        }

        private void trackBar4_ValueChanged(object sender, EventArgs e)
        {
            textBox4.Text = trackBar4.Value.ToString();
        }

        private void trackBar5_ValueChanged(object sender, EventArgs e)
        {
            textBox5.Text = trackBar5.Value.ToString();
        }

        private void trackBar6_ValueChanged(object sender, EventArgs e)
        {
            textBox6.Text = trackBar6.Value.ToString();
        }

        private void button8_Click(object sender, EventArgs e)
        {
            checkBox9.Checked = true;
            checkBox10.Checked = true;
            checkBox11.Checked = true;
            checkBox12.Checked = true;
            checkBox13.Checked = true;
            checkBox15.Checked = true;
            checkBox16.Checked = true;
            checkBox17.Checked = true;
            checkBox19.Checked = true;
            checkBox8.Checked = false;
            checkBox18.Checked = false;
            checkBox20.Checked = false;
            checkBox21.Checked = false;
            checkBox22.Checked = false;
        }
    }
}
